home *** CD-ROM | disk | FTP | other *** search
Wrap
GW-BASIC | 1984-11-11 | 7.4 KB | 209 lines
10 ' TO START THIS PROGRAM IMMEDIATELY WITHOUT THE OPENING SCREEN, TYPE "RUN 500" 20 ' PC-CHECK BY SHAWN PELTIER 30 ' THIS PROGRAM CONSTANTLY KEEPS A RUNNING TOTAL OF THE BALANCE, THAT IS WHY YOU DO NOT SEE MUCH UNDER THE HEADING "---====COMPUTE FINAL BALANCE====---". IT ONLY HAS TO ADD INTEREST BY THEN. (RUNNING TOTAL IS KEPT AS VARIABLE "P".) 40 ' ALL OF THE INPUT ROUTINES ARE IN A PATTERN. THEY ASK YOU HOW MANY ITEMS, DIMENSION A VARIABLE, ASK EACH ITEM'S VALUE, AND ADD THEM UP. ALL QUESTIONS ARE VERIFIED. SEE OPENING SCREEN FOR MORE. 50 SCREEN 2:SCREEN 0:KEY OFF 60 COLOR 15,1,1 70 CLS 80 PRINT "KEYTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENTHENCLOSE" 90 PRINT "OPEN PC-CHECK OPEN" 100 PRINT "OPEN Version 1.02 OPEN" 110 PRINT "OPEN By Shawn Peltier OPEN" 120 PRINT "OPEN (See REMark statements for more info on program itself) OPEN" 130 PRINT "OPEN PC-CHECK is a non-copyrighted program by Shawn Peltier. If you have any OPEN" 140 PRINT "OPEN additions to the program, just increase the version by .01 and add your nameOPEN" 150 PRINT "OPEN at the bottom of this screen. If you have any questions, send E-Mail to OPEN" 160 PRINT "OPEN Shawn Peltier on NOPC-RBBS (504)-895-5259. If you feel this program is of OPEN" 170 PRINT "OPEN value, please send any donations ($5 suggested) to: OPEN" 180 PRINT "OPEN Shawn Peltier OPEN" 190 PRINT "OPEN 4141 Veterans Blvd. Suite 300 OPEN" 200 PRINT "OPEN Metairie, Louisiana 70002 OPEN" 210 PRINT "OPEN You may also mail Shawn any questions at this adress. If you would like a OPEN" 220 PRINT "OPEN program made especially for you by Shawn, send him a request. His prices OPEN" 230 PRINT "OPEN are very cheap! Watch for these programs from Shawn Peltier: OPEN" 240 PRINT "OPEN PC-SORT, PC-BILL, PC-QUIZ, PC-BOWL, PC-CRIME, PC-LAUGH, PC-BOARD, PC-JUDGE OPEN" 250 PRINT "OPEN PC-MATH, PC-TEMP, AND PC-DRAW. Thank you for your support! OPEN" 260 PRINT "OPEN Shawn Peltier OPEN" 270 ' ---====NEXT FIVE LINES PRODUCE BOTTOM LINE OF OPENING SCREEN====--- 280 PRINT CHR$(200); 290 FOR X=1 TO 77 300 PRINT CHR$(205); 310 NEXT X 320 PRINT CHR$(188) 330 PRINT "(Press 's' to continue)" 340 A$=INKEY$:IF A$="S" OR A$="s" THEN 350 ELSE 340 350 CLS 360 PRINT "This program will balance your checkbook if you know all the" 370 PRINT "requested information. Have your checkbook and bank statement " 380 PRINT "available so that I can get the needed data. " 390 PRINT "O.K. Let's go!" 400 SOUND 146.83, 2 410 SOUND 174.61, 2 420 SOUND 220, 2 430 SOUND 261.63, 2 440 FOR DELAY=1 TO 400 450 NEXT DELAY 460 SOUND 220, 2 470 SOUND 261.63, 2 480 FOR DELAY=1 TO 5000 490 NEXT DELAY 500 CLS 510 PRINT "Hint: answer all verification questions with 'n' or 'y'." 520 PRINT "O.K. Here goes--->"; 530 ' 540 ' ---====BEGGINING OF THE HEART OF THE PROGRAM====--- 550 ' 560 INPUT "What is the beggining STATEMENT balance???";BCB 570 PRINT "You said that the beginning statement balance is";BCB 580 INPUT "Is this correct";ER$ 590 IF ER$="n" THEN 560 600 ' 610 ' ---====DEPOSITS ROUTINE====--- 620 ' 630 INPUT "How many deposits are on the statement?";DOS 640 PRINT "You said that there were";DOS;"deposits on the statement. Is this correct"; 650 INPUT ER$ 660 IF ER$="n" THEN 630 670 DIM DEPOSIT(DOS) 680 FOR D=1 TO DOS 690 PRINT "Deposit";D;"===>";:INPUT DEPOSITS(D) 700 NEXT D 710 PRINT "O.K. How many deposits are there NOT on the statement?";:INPUT DNOS 720 DIM DEP(DNOS) 730 FOR DS=1 TO DNOS 740 PRINT "Deposit";DS;"===>";:INPUT DEPS(DS) 750 NEXT DS 760 PRINT "The following is a list of the deposits you gave me:" 770 FOR I=1 TO DOS 780 PRINT " ";DEPOSITS(I) 790 NEXT I 800 FOR U=1 TO DNOS 810 PRINT " ";DEPS(U) 820 NEXT U 830 PRINT "Are these correct???" 840 INPUT ER$ 850 IF ER$="n" THEN ERASE DEPOSIT:ERASE DEP:GOTO 630 860 X=0 870 FOR JJ=1 TO DOS 880 X=X+1 890 IF X>0 THEN 910 900 V=0+DEPOSITS(JJ) 910 V=V+DEPOSITS(JJ) 920 NEXT JJ 930 Z=0 940 FOR XX=1 TO DNOS 950 Z=Z+1 960 IF Z>0 THEN 980 970 B=0+DEPS(XX) 980 B=B+DEPS(XX) 990 NEXT XX 1000 LET D=BCB+V+B 1010 CLS 1020 ' 1030 ' ---====CHECKS PAID ROUTINE====--- 1040 ' 1050 INPUT "How many checks does your bank statement show were paid?";CP 1060 PRINT "You said your bank statement shows";CP;"checks were paid." 1070 INPUT "Is this correct";ER$ 1080 IF ER$="n" THEN 1050 1090 DIM CHECKS(CP) 1100 FOR C=1 TO CP 1110 PRINT "Paid Check";C;"=====>";:INPUT PAIDCHEC(C) 1120 NEXT C 1130 PRINT "You gave me these paid checks:" 1140 FOR S=1 TO CP 1150 PRINT " ";PAIDCHEC(S) 1160 NEXT S 1170 INPUT "Are these correct";ER$ 1180 IF ER$="n" THEN ERASE CHECKS:GOTO 1050 1190 IF ER$="no" THEN ERASE CHECKS:GOTO 1050 1200 FOR K=1 TO CP 1210 H=H+PAIDCHEC(K) 1220 NEXT K 1230 LET P=D-H 1240 FOR DELAY=1 TO 4000 1250 NEXT DELAY 1260 CLS 1270 ' ---====OUTSTANDING CHECKS ROUTINE====--- 1280 INPUT "How many outstanding checks";OC 1290 PRINT "Are there";OC;"outstanding checks";:INPUT ER$ 1300 IF ER$="n" THEN 1280 1310 DIM ZZTOP(OC) 1320 FOR ZZ=1 TO OC 1330 PRINT "Outstanding check";ZZ;"=====>";:INPUT OUTCHECK(ZZ) 1340 NEXT ZZ 1350 PRINT "You gave me these outstanding checks:" 1360 FOR Y=1 TO OC 1370 PRINT " ";OUTCHECK(Y) 1380 NEXT Y 1390 INPUT "Are these correct";ER$ 1400 IF ER$="n" OR ER$="no" THEN ERASE ZZTOP:GOTO 1270 1410 FOR A=1 TO OC 1420 W=W+OUTCHECK(A) 1430 NEXT A 1440 P=P-W 1450 ' ---====MISC. INPUT ROUTINE====--- 1460 ' 1470 INPUT "Service charge was";SC 1480 PRINT "You said the service charge was";SC 1490 INPUT "Is this correct";ER$ 1500 IF ER$="n" OR ER$="no" THEN 1470 1510 LET P=P-SC 1520 INPUT "NSF checks returned";NSF 1530 PRINT "You said that the NSF checks totaled";NSF 1540 INPUT "Is this correct";ER$ 1550 IF ER$="no" OR ER$="n" THEN 1520 1560 LET P=P-NSF 1570 INPUT "Special bank charges";SBC 1580 PRINT "You said special bank charges totaled";SBC 1590 INPUT "Is this correct";ER$ 1600 IF ER$="n" OR ER$="no" THEN 1570 1610 LET P=P-SBC 1620 INPUT "Miscellaneous charges";MC 1630 PRINT "You said Miscellaneous Charges totaled";MC 1640 INPUT "Is this correct";ER$ 1650 IF ER$="n" OR ER$="no" THEN 1620 1660 LET P=P-MC 1670 PRINT "Oh, I almost forgot:" 1680 PRINT "Is there any interest on the statement?" 1690 INPUT IOS 1700 PRINT "You said the interest was";IOS 1710 INPUT "Is this correct";ER$ 1720 IF ER$="n" OR ER$="no" THEN 1680 1730 LET P=P+IOS 1740 PRINT "And now, the GRAND TOTAL!!!!!" 1750 FOR DELAY=1 TO 3000 1760 NEXT DELAY 1770 ' ---====COMPUTE FINAL BALANCE====--- 1780 CLS 1790 IF P<0 THEN GOSUB 2150 1800 PRINT :PRINT :PRINT "The GRAND total is..."; 1810 BEEP:BEEP:BEEP:BEEP:BEEP 1820 PRINT P;"." 1830 INPUT "Does this match the balance on your checkbook? It should...";YON$ 1840 IF YON$="y" THEN 1980 1850 IF YON$="yes" THEN 1980 1860 IF YON$="Yes" THEN 1980 1870 FOR S=1 TO 30 1880 BEEP 1890 FOR DELAY=1 TO 80 1900 NEXT DELAY 1910 NEXT S 1920 PRINT "YOU MADE AN ERROR. HUMANS. THEY MAKE SO MANY ERRORS. WE COMPUTERS MAKE NONE." 1930 PRINT "PLEASE FIND YOUR ERROR AND THEN RE-RUN THIS PROGRAM." 1940 PRINT "ADIOS..." 1950 FOR DELAY=1 TO 1000 1960 NEXT DELAY 1970 END 1980 CLS 1990 PRINT "WHOOPEEEE!!!!" 2000 PRINT "IT'S AMAZING!" 2010 PRINT "If you have questions about this program, do one of the following:" 2020 PRINT "1) If you know Shawn personally, just go up to him and ask him," 2030 PRINT "2) Mail Shawn your question at the following adress:" 2040 PRINT " Shawn Peltier" 2050 PRINT " 4141 Veterans Boulevard---Room 300" 2060 PRINT " Metairie, Louisiana 70002" 2070 PRINT "3) Call one of the following Bulletin Boards and leave" 2080 PRINT "him E-Mail:" COMSPEC .LBR 1536 A 06/24/84 14:22<UNK! {000D}><UNK! {000A}>PURGE .COM 1152 A 01/01/80 04:11 FLITPLN2.LBR 17920 A 11/04/84 20:29<UNK! {000D}><UNK! {000A}>DUMP .DOC 768 A 02/04/84 05:34 HANG-MAN.LBR 105856 A 09/02/84 01:31<UNK! {000D}><UNK! {000A}>FROGGY .BAS 26321 A 04/24/84 22:23 RAMDISK2.LBR 4992 A 09/19/84 19:07<UNK! {000D}><UNK! {000A}>TANYA .TQT 3053 A 06/16/84 23:27 EJLUTIL .LBR 12544 A 08/24/84 00:52<UNK! {000D}><UNK! {000A}>GOMOKU .EXE 3276